//用户上传头像

export async function user_UPLOAD_avatar(formData, proxy) {
    try {
        const response = await proxy.$http.post(`/change_head/`, formData,{ headers: {
        'Content-Type': 'multipart/form-data'
          }}
        );
        console.log(response.data)
        if (response.status !== 200)
            throw new Error(`HTTP error! Status: ${response.status}`);
        return response;
    } catch (error) {
        console.error('Error:', error);
        throw error;
    }
}


